package file;

import java.io.File;

public class MKDirDemo {
    public static void main(String[] args) {
        File dir = new File("demo");
        if(!dir.exists()){
            dir.mkdir();
            System.out.println("该目录以创建");
        }else{
            System.out.println("该目录已存在");
        }

    }
}
